Hi, all
void btn(DBE canv, int bt, bool ctrl, int x, int y)
{
if(bt == 1)
print "Left clicked"
else if(bt == 2)
print "Left double clicked"
else
print "Right clicked"
}
DBE canv
canv = getCanvas
set(canv, btn)
Aven_HIT - Thu Dec 24 02:30:14 EST 2009 |
Re: A simple question about canvas Merry christmas! It's very urgent for me to slove this problem. Please give me some hints or tips if you could, many thanks. Best regards, Aven. |
Re: A simple question about canvas it is not possible to use the mouseEvent or the keyboardEvent callbacks on a canvas of a layout DXL. The canvas obtained from a Layout DXL is not a real canvas! I think you can only use it to draw on it. Regards, Mathias |